
<?php  

/*

Name:	独立下载页面系统
Author:	微夏博客网 vxia.net
QQ:		656536055
Notice: 版权所有，侵权必究！
Remind:	如需要修改，请尊重作者，保留版权，谢谢！

*/
	// session开始  
    session_start();  
	
    if ("666888" != $_SESSION['password'] && "test" != $_SESSION['name']){
		$page="login.php";   
  		echo "<script>window.location = \"".$page."\";</script>";  
		}

?>  
<?php
error_reporting(0);
if(isset($_POST['q3']))
    {

        $html='
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<script type="text/javascript">
    /*vx下载界面2*/
    var cpro_id = "u2801547";
</script>
<script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/f.js"></script>

<meta name="robots" content="nofollow" /> <!--告诉爬虫该页面上所有链接都无需追踪。-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>微夏博客网资源下载页面-vxia.net</title>
<meta name="keywords" content="微夏博客网 -- vxia.net"/>
<meta name="description" content="微夏博客网资源下载页面"/>
<style>
*{margin:0;padding:0;}
a{color:#ff3800;text-decoration:none;}
a:hover{color:green;border-bottom:1px dashed #F30;}
a img{border:0}
ul{margin:5px;padding:5px;}
ul li{line-height:15px;font-size:14px;padding:5px;border-bottom:1px dashed #ddd;list-style:none outside none;}
h1{text-align:center;border-bottom:1px solid #dadada;clear:both;font:26px Georgia,"Times New Roman",Times,serif;margin:5px 0 0 -4px;padding:0;padding-bottom:7px;font-weight:bold;}
h2{color:#FF0080;font-size:16px;}
h3{color:#666666;font-size:15px;margin:15px 0 10px;}
p{padding-bottom:2px;font-size:13px;line-height:22px;}
html{background:#F2F2F2;}
body{background:#fff;color:#333;font-family:"Microsoft YaHei",Helvetica,sans-serif;margin:2em auto;width:728px;padding:1em 2em;border:1px solid #dfdfdf;}
.clear{clear:both;height:1px;}
#header{padding:10px 0 15px 10px;text-align:center;}
.list{background:none repeat scroll 0 0 #F2F2F2;border:1px solid #BFBFBF;color:#666666;font-size:14px;margin:15px 0 10px;padding:10px 0 0 10px;}
.list a{display:inline-block;padding:2px 4px;}
.sm,.desc{background:#F2F2F2;border:1px solid #BFBFBF;color:#666666;font-size:13px;margin:10px 0;}
</style>
</head>
<body>
<div id="header"></div>
<h1><a href="'.$_POST['q2'].'"target="_blank">'.$_POST['q1'].'</a></h1>
<div class="clear"></div>
<div class="desc" style="padding:10px;">
	<h3>微夏博客网下载文件资源信息</h3>
	<p>文件名称：'.$_POST['q1'].'</p>
	<p></p>
</div>
<div class="clear">
</div>
<script type="text/javascript">
    /*vx下载界面1*/
    var cpro_id = "u2801538";
</script>
<script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script>

<div class="list">
	下载列表：<br/>
	百度云盘：<a href="'.$_POST['q4'].'"target="_blank">'.$_POST['q4'].'</a>&nbsp;&nbsp;密码：'.$_POST['q5'].'<br>
	其他云盘：<a href="'.$_POST['q6'].'"target="_blank">'.$_POST['q6'].'</a>&nbsp;&nbsp;<br>
</div>
<div class="clear"></div>
<div class="desc" style="border:none"></div>
<div class="clear"></div>

<div class="desc" style="border:1px solid #FCC;background:#FFE;">
	<p>下载说明</p>
	<ol style="padding:0 10px 0 25px;">
		<li>下载后文件若为压缩包格式，请安装RAR或者好压软件进行解压。</li>
		<li>文件比较大的时候，建议使用下载工具进行下载，浏览器下载有时候会自动中断，导致下载错误</li>
		<li>资源可能会由于内容问题被和谐，导致下载链接不可用，遇到此问题，请到文章页面进行反馈，我们会及时进行更新的。</li>
		<li>其他下载问题请自行搜索教程，这里不一一讲解</li>
	</ol>
</div>
<script type="text/javascript">
    /*vx下载界面1*/
    var cpro_id = "u2801538";
</script>
<script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script>

<div class="sm" style="padding:5px">
	<p>声明：</p>
	<p>本站大部分下载资源收集于网络，只做学习和交流使用，版权归原作者所有，若为付费资源，请在下载后24小时之内自觉删除，若作商业用途，请到原网站购买，由于未及时购买和付费发生的侵权行为，与本站无关。本站发布的内容若侵犯到您的权益，请联系本站删除，我们将及时处理！
	</p>
</div>
<div class="clear"></div>
<div class="copy" style="text-align: center;margin-top:15px;">
	Copyright © 微夏博客网 vxia.net
</div>
</body>
</html>';


    	file_put_contents($_POST['q3'].".html",$html);
    }
?>


<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
		<meta name="viewport" content="width=device-width, initial-scale=1"> 
		<title>微夏博客网资源下载页面</title>
		<link rel="stylesheet" type="text/css" href="css/normalize.css" />
		<link rel="stylesheet" type="text/css" href="css/demo.css" />
		<link rel="stylesheet" type="text/css" href="css/component.css" />
		<script src="js/modernizr.custom.js"></script>
	</head>
	<body>
		<div class="container">
			<header class="codrops-header">
			<?php 
			$nurl=$_SERVER['PHP_SELF'];
				echo "<a href='$nurl' target='_blank' ><h1><div class='biaoti'>微夏博客网资源下载管理页面 <span>vxia.net</span></div></h1></a>";
				?>
			</header>
			<section>
				<form id="theForm" class="simform" autocomplete="off" method="post">
					<div class="simform-inner" <?php if($_POST['q3']){echo "style='display:none;'";}?>>
						<ol class="questions">
							<li>
								<span><label for="q1">请输入资源名称：</label></span>
								<input id="q1" name="q1" type="text"/>
							</li>
							<li>
								<span><label for="q2">请输入资源文章链接(需加 http://)：</label></span>
								<input id="q2" name="q2" type="text" />
							</li>
							<li>
								<span><label for="q3" id="filename">请输入要保存的网页名(如:softdown)：</label></span>
								<input id="q3" name="q3" type="text"/>
							</li>
							<li>
								<span><label for="q4">请输入百度云盘分享链接(需加 http://)：</label></span>
								<input id="q4" name="q4" type="text" />
							</li>
							<li>
								<span><label for="q5">请输入百度云盘分享密码：</label></span>
								<input id="q5" name="q5" type="text"/>
							</li>
							<li>
								<span><label for="q6">请输入其他网盘分享链接(需加 http://)：</label></span>
								<input id="q6" name="q6" type="text"  />
							</li>
							
						</ol><!-- /questions -->
						<button class="submit" type="submit"  >提交</button>
						<div class="controls">
							<button class="next"></button>
							<div class="progress"></div>
							<span class="number">
								<span class="number-current"></span>
								<span class="number-total"></span>
							</span>
							<span class="error-message"></span>
						</div><!-- / controls -->
					</div><!-- /simform-inner -->
					<span class="final-message" id="final-message">
						<?php 
						$url='http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
						$downurl = dirname($url);
						$nurl2=$_SERVER['PHP_SELF'];
							if($_POST['q3']){
								echo "<p>系统生成的链接为：</p>";
								echo "<a href='$downurl/{$_POST['q3']}.html' target='_blank' >$downurl/{$_POST['q3']}.html</a>";
								echo "<h6><a href='$nurl2'>返回首页</a></h6>";
						?>
						<script>
							var final = document.getElementById( 'final-message' );
							console.log(final)
							final.style.visibility='visible'
							final.style.opacity='1'
						</script>


						<?php
							}

						?>

					</span>
				</form><!-- /simform -->			
			</section>
			<div class="bottom">
			友情链接：<a href="http://www.vxia.net/" target="_blank"><span class="biaoti" >微夏博客网</span></a>
			</div>
		</div><!-- /container -->
		<script src="js/classie.js"></script>
		<script src="js/stepsForm.js"></script>
		<script>
			var theForm = document.getElementById( 'theForm' );

			new stepsForm( theForm, {
				onSubmit : function( form ) {
					// hide form
					classie.addClass( theForm.querySelector( '.simform-inner' ), 'hide' );

					
					form.submit()
					/*
					or
					AJAX request (maybe show loading indicator while we don't have an answer..)
					*/

					// let's just simulate something...
				/*var messageEl = theForm.querySelector( '.final-message' );
					messageEl.innerHTML = 'Thank you! We\'ll be in touch.';
					classie.addClass( messageEl, 'show' );*/
				}
			} );

		</script>
	
	</body>
</html>